package com.zboin.ucenter.service;

import com.zboin.ucenter.model.Permission;

import java.util.List;

/**
 * @author zhboom
 * @date 2025/8/4 23:28
 */
public interface PermissionService {

    Permission getPermissionById(Integer permitId);

    Permission getPermissionByKey(String permitKey);

    List<Permission> getPermissionByRoleId(Integer roleId);

    int addPermission(Permission permissions);

    int updatePermission(Permission permissions);

    int deletePermission(Integer permitId);
}
